package com.wthink.hzgj.util.adapter

abstract class LifecycleAutoUpdatableAdapter<T : LifecycleBaseViewHolder,V:Any>(compare: (o: V, n: V) -> Boolean) :
    AutoUpdatableAdapter<T,V>(compare) {

    override fun onViewAttachedToWindow(holder: T) {
        super.onViewAttachedToWindow(holder)
        holder.onAppear()
    }

    override fun onViewDetachedFromWindow(holder: T) {
        super.onViewDetachedFromWindow(holder)
        holder.onDisappear()
    }

}